package com.jwds.digital.bios.business.core.infrastructure.mapper.belt;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwds.digital.bios.business.core.infrastructure.dto.belt.BeltRouteTargetHisReqDTO;
import com.jwds.digital.bios.business.core.infrastructure.vo.belt.BeltRouteTargetHisRespVO;
import com.jwds.digital.bios.business.core.infrastructure.entity.belt.BeltRouteTargetHis;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *  Mapper 接口
 *
 * @author 林柏云
 * @date 2024-12-11
 */
@Mapper
public interface BeltRouteTargetHisMapper extends BaseMapper<BeltRouteTargetHis> {

  /**
   * 分页查询
   * @param page 分页参数
   * @param condition 查询条件
   * @return respVOList 查询结果
   */
  IPage<BeltRouteTargetHisRespVO> pageQuery(@Param("page") Page<?> page, @Param("condition") BeltRouteTargetHisReqDTO condition);

  /**
  * 列表查询
  * @param condition 查询条件
  * @return respVOList 查询结果
  */
  List<BeltRouteTargetHisRespVO> queryList(@Param("condition") BeltRouteTargetHisReqDTO condition);

  /**
  * 根据ID查询
  * @param id 查询条件
  * @return respVO 查询结果
  */
  BeltRouteTargetHisRespVO queryById(@Param("id") Long id);


  BeltRouteTargetHisRespVO queryByFlowNo(@Param("flowNo") Short flowNo);
  /*******************扩展查询*******************/

}
